/*********************************************************************
* File: goomba.h
* Create Goomba
* Author: 10520418 Bui Huu Hiep
**********************************************************************/
#pragma once
#ifndef _GOOMBA_H
#define _GOOMBA_H

#include "GameObject.h"


// set lai
#define GOOMBA_VX 80
#define GOOMBA_VY 700

/********************************************
* Goomba
* Inheritance form class GameObject
* Create Goomba
********************************************/
class Goomba : public GameObject
{
private:
	int _time_del;

public:
	Goomba(float posX, float posY, float width, float height, Resources* res, int number, int depth);
	~Goomba(void);

	void Update(float time, QNode* &Tree);
	void Render(LPD3DXSPRITE spriteHandler, Viewport* viewport);
	void ChangeState(char state);

	void UpdateAnimation(float time);
	void Move(float time, vector<GameObject*> listObj);
};
#endif

